<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 使用JSTL标签需要引入的头文件 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 使用fmt 对时间进行格式化的时候需要引入的头文件 -->
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="data_list">
		<!-- 日记列表表头 -->
		<div class="data_list_title">
			<img src="${pageContext.request.contextPath}/images/list_icon.png"/>日记列表
		</div>
		<!-- 日记列表数据 -->
		<div class="diary_datas">
			<ul>
				<c:forEach var="diary" items="${diaryList }">
					<li>『<fmt:formatDate value="${diary.releaseDate }" type="date" pattern="yyyy-MM-dd"/>』<span>&nbsp;<a href="diary?action=show&diaryId=${diary.diaryId }">${diary.title }</a></span></li>
				</c:forEach>
			</ul>
		</div>
		<!-- 分页查询列表 -->
		<div class="pagination pagination-centered">
			<ul>
				<!-- 具体业务逻辑在后台写 -->
				${pageCode }
			</ul>
		</div>
</div>
</body>
</html>